package org.example.controller;

import org.example.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

/**
 * @author shenguangyang
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Resource
    private UserService userService;

    @GetMapping("/findOrderByUserId/{id}")
    public String findOrderByUserId(@PathVariable(value = "id") String  userId) {
        return userService.findOrderByUserId(userId);
    }
}
